import {reqLogin, req} from '@/api/basicReq'

// 用户登录

export function userlogin(data = {}) {
  return reqLogin({
    url: 'user/UserLogin',
    method: "post",
    data: data
  })
}

// 用户登出

export function userlogout(data = {}) {
return req({
  url: 'user/UserLogout',
  method: "post",
  data: data
})
}

// 获取商家信息

export function getMerchant(data = {}) {
  return req({
    url: 'merchant/Merchant',
    method: "get",
    params: data
  })
  }

  // 获取商家商品

export function getGoods(data = {}) {
  return req({
    url: 'goods/GoodList',
    method: "get",
    params: data
  })
  }

    // 获取商家商品类型

export function getGoodsType(data = {}) {
  return req({
    url: 'goods/GoodsType',
    method: "get",
    params: data
  })
  }

  // 首页获取商家商品

export function getHomeGoods(data = {}) {
  return req({
    url: 'goods/Goods',
    method: "get",
    params: data
  })
  }

    // 首页获取抢购商品

export function getRushGoods(data = {}) {
  return req({
    url: 'goods/RushGoods',
    method: "get",
    params: data
  })
  }


// 用户信息

export function UserInfo(data = {}) {
  return req({
    url: 'user/UserInfo',
    method: "get",
    params: data
  })
}


    // 获取订单

export function getOrder(data = {}) {
  return req({
    url: 'goods/Order',
    method: "get",
    params: data
  })
  }

// 查询任务
export function selectTask(data = {}) {
  return req({
    url: 'goods/RushResult',
    method: "get",
    params: data
  })
  }